package hn.cch.spring.context.boot;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;

public class InitImpl implements InitializingBean {

    private static final Logger logger = LoggerFactory.getLogger(InitImpl.class);


    @Override
    public void afterPropertiesSet() throws Exception {
        logger.info("afterPropertiesSet");
    }

    @PostConstruct
    public void postConstruct(){
        logger.info("postConstruct");
    }

    public void initMethod(){
        logger.info("postConstruct");
    }
}
